<template>
	<!-- 受理确认 -->
	<view class="wrap">
		<work-sheet-item style="width: 100%;" :workSheet="workSheet"></work-sheet-item>
		<button  style="width: 100%;" type="primary" @click="confirm">确认受理</button>
		<u-modal v-model="show" title="提示" :content="content" :mask-close-able="true" @confirm="onConfirm"></u-modal>
	</view>
</template>

<script>
	import workSheetItem from '../../mine/workSheet/components/work-sheet-item.vue'
	export default{
		components:{
			workSheetItem
		},
		data(){
			return{
				workSheet:{
						orderNum:21060611,
						state:1,
						devName:'设备A',
						macAddres:'AD-23-SV-MB-22',
						faultReason:'接触不良',
						reportMan:'张三',
						reportTime:'2021-06-08 15:23:11',
						repairMan:'李四',
						repairTime:'2021-06-08 16:23:11',
					},
					show:false,
					content:'受理成功，您可以在“待维修”看到该保修单',
					
			}
		},
		methods:{
			confirm(){
				this.show = true
			},
			onConfirm(){
				uni.reLaunch({
					url:'/pages/deviceWorkSheet/index?title=待维修&pageType=2'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
		
	.wrap{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}
</style>
